package hu.xydan;

import java.awt.event.KeyEvent;
import java.util.ArrayList;
/**
 * @author wuxort
 */
public class Billentyűzet 
{
    public static void init(KeyEvent event)
    {
       
       switch (event.getKeyCode())
       {
           case KeyEvent.VK_SPACE: System.out.println("Space gomb"); break;
           case KeyEvent.VK_UP   : System.out.println("Felfelé gomb");break;
           case KeyEvent.VK_DOWN : System.out.println("Lefelé Gomb");break;
           case KeyEvent.VK_LEFT : System.out.println("Balra gomb");break;
           case KeyEvent.VK_RIGHT: System.out.println("Jobbra gomb");break;
           case KeyEvent.VK_ESCAPE: System.out.println("Kilépés...");
                                    System.exit(0);break;
       }
  
    }
}
